/**
 * 
 */
package markovchain;

/**
 * Thrown when the input transition matrices have one or more
 * columns having sums over 1 or negative.
 * 
 * @author Dang Khoa Vo
 */
public class MCTransitionValueViolationException extends Exception {
	
	private int i;

	public MCTransitionValueViolationException(int i) {
		super();
		this.i = i;
	}

	@Override
	public String getMessage() {
		return "Row " +  i + " of the transitions is invalid.";
	}

}
